-- GENERATED SPELL FOR [Deadwood Gardener] --


function spell0_7154(pUnit, Event) --@Curse of the Deadwood,Heal--
pUnit:FullCastSpellOnTarget(13583,pUnit)
pUnit:RegisterEvent('Sorts_7154', 2000, 1)
end

function spell1_7154(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_7154', 3000, 1)
end

function spell2_7154(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(12160,pUnit)
pUnit:RegisterEvent('Sorts_7154', 12000, 1)
end

function Sorts_7154(pUnit, Event)
local choix_sorts_7154 = math.random(0, 2)
if choix_sorts_7154 == 0 then
pUnit:RegisterEvent('spell0_7154', 1, 1)
end
if choix_sorts_7154 == 1 then
pUnit:RegisterEvent('spell1_7154', 1, 1)
end
if choix_sorts_7154 == 2 then
pUnit:RegisterEvent('spell2_7154', 1, 1)
end
end

function mob7154_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7154', math.random(1500, 3000), 1)
end

function mob7154_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7154_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7154_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7154, 1, 'mob7154_Action')
RegisterUnitEvent(7154, 2, 'mob7154_Leave')
RegisterUnitEvent(7154, 3, 'mob7154_Kill')
RegisterUnitEvent(7154, 4, 'mob7154_Die')
